package com.itaming.lycheeframework.security.constant;

import java.util.regex.Pattern;

/**
 * Token常量
 *
 * @author A.Ming
 */
public interface TokenConstant {

    /**
     * Bearer
     */
    String BEARER = "Bearer";

    /**
     * Bearer正则模式
     */
    Pattern BEARER_PATTERN = Pattern.compile(String.format("^%s\\s+(\\S+)$", BEARER));

    /**
     * Token缓存前缀
     */
    String TOKEN_CACHE_KEY_PREFIX = "auth:token:";

}
